These script log files are examples of output and logging during the SWVR Restore Accelerator process.

SNAPCOPY.CMD  
dumplog.out - dump edb.log header and store for input to log verification (CHECKLOG.EXE) utility
checkdb.out - verify EDB is consistent and use as input for verification
privedb.out - output stored from ESEUTIL /MH
privMH.out - output stored from ESEUTIL /MH
pubdb.out -  output stored from ESEUTIL /MH
snap.out - log of SWVR snap creation process  

SNAPREC.CMD  
checkdb.out - verify snap EDB is consistent and use as input for verification
dumplog.out - input to log verification (CHECKLOG.EXE) utility
privedb.out - input to log verification (CHECKLOG.EXE) utility
pubdb.out - input to log verification (CHECKLOG.EXE) utility
dumplog.out - DUMP edb.log header and store for input to log verification (CHECKLOG.EXE) utility
recover.out - log of SWVR snap recovery process 

SNAPREST.CMD
restore.out - log of SWVR restore from snap recovery process 



Overview
Windows NT Command Line Script SNAPCOPY.CMD is used to schedule a snapshot creation.
RECOVER.CMD is used to REMAP the PARENT database to the SNAPSHOT and run the recovery process.
RESTORE.CMD is used to copy the SNAPSHOT back to the PARENT and restore to normal operations.  

	Requires: Exchange 5.5 (Service Pack 2 or greater),
		  StorageWorks Virtual Replicator,			
		  CPQLE.EXE,CPQLEMESS.DLL,ESEUTIL.EXE,CHECKDB.EXE
		 
		  CPQLE, CPQLEMESS, CHECKDB are provide with the SWVR scripts.		
		
		  ESEFILE and ESEUTIL are available from Microsoft.  ESEFILE is availble 
		  with Exchange Server 5.5 SP3.


Installation
Copy all *.exe files and *.cmd files to a directory that is in the system PATH such as <system root>\system32

Start the SCHEDULE Service with Administrative rights (log on as a service, Exchange Server Container permission)    
Go to Control Panel/Services
Highlight the SCHEDULE service.
STARTUP set to AUTOMATIC
LOG ON as THIS ACCOUNT
Enter or browse for the Account with Administrative permissions
Enter password and start the SCHEDULE service

Use WINAT or the  AT command to schedule the SNAPCOPY.CMD to run as required.

C:\>at
Status ID   Day                     Time          Command Line
-----------------------------------------------------------------------
        0   Each M T W Th F S Su    2:00 AM       snapcopy.cmd


Normal Operation

 Online Full Backup of Exchange Server
 Stop the Exchange Information Store and dependencies
 Create the new snapshot of the database files 
 Start the Exchange Information Store and dependencies
 Map a drive letter for the new snapshot
 Determine and store last consistent transaction log



Recover - to SNAPSHOT

 Integrity check the snapshot
 Information Store Transaction Log Verification
 Stop the Exchange Information Store and dependencies
 Map the snapshot to the virtual disk/parent drive letter
 Rename or Delete the MDBDATA checkpoint file 
 Run ISINTEG -PATCH 
 Start the Exchange Information Store and dependencies



Restore - FROM SNAPSHOT to PARENT

 Online Full Backup of Exchange Server
 Stop the Exchange Information Store and dependencies
 Unmap SNAPSHOT and PARENT
 REMAP PARENT as PRIMARY Database
 REMAP SNAPSHOT as SNAPSHOT Database
 SCOPY or file copy SNAPSHOT TO PARENT
 Rename or Delete the MDBDATA checkpoint file 
 Run ISINTEG -PATCH 
 Start the Exchange Information Store and dependencies
	 
